<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2022/11/4 0004
  Time: 10:31
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
index
<form method="post" action="${pageContext.request.contextPath}/file/upload" enctype="multipart/form-data">
    <table>
        <div>
            <input type="text" name="uname">
            <input type="file" name="idPic">
            <input type="submit" value="提交1">
        </div>
        <div>
            <img src="${pageContext.request.contextPath}/statics/uploadfiles/test.png">
        </div>
    </table>
</form>
</body>
</html>
